home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group01a.txt / 000085_icon-group-sender _Wed Jul 5 08:03:33 2000.msg < prev    next >
Internet Message Format  |  2002-01-03  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id IAA24576
  4.     for icon-group-addresses; Wed, 5 Jul 2000 08:02:11 -0700 (MST)
  5. Message-Id: <200007051502.IAA24576@baskerville.CS.Arizona.EDU>
  6. From: Atle <trollet@skynet.be>
  7. X-Newsgroups: comp.lang.icon
  8. Subject: Re: Error messages
  9. Date: Sat, 01 Jul 2000 12:21:15 -0100
  10. X-Trace: news0.skynet.be 962446543 8139 194.78.236.172 (1 Jul 2000 10:15:43 GMT)
  11. X-Complaints-To: abuse@skynet.be
  12. X-Accept-Language: en
  13. To: icon-group@optima.CS.Arizona.EDU
  14. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  15. Status: RO
  16. Content-Length: 1414
  17.  
  18. Steve Wampler wrote:
  19. >
  20. >     set := table()
  21. > and then the line
  22. >     foo := set[bar]
  23. > makes complete sense.  (This type of language flexibility does
  24. > make it difficult to produce error messages that always make
  25. > sense to the user, who may be thinking of something entirely
  26. > different - which is why having a traceback that includes line
  27. > numbers is so useful!)
  28. This may not be related to Icon at all (although I feel that Icon, ProLog, Simula and Beta are 'close cousins :) - but I have been
  29. fooling around with the idea of writing a parser in ProLog - I started out with something close to the grammar for 8086 assembly.
  30. Why? Because the syntax is simple, so syntax errors wont contain much information as to what the error actually is, but the
  31. semantics possibilities are enormous compared to, say, Pascal.
  32. Now, this is where I think it might be relevant: Wouldn't some kind of knowledge base help in producing more meaningful error
  33. messages? I have been through Icon enough to write small programs in it, and I had the same impression: The error messages really
  34. only say: "Error" - and you have to find the rest out for yourself. The case here about the [] could be added to the knowledgebase,
  35. so the next time, the error would be "I told myself I wouldn't use [] here!" :-)
  36.  
  37. Any thoughts? Should I drop the idea of using an AI language to build an assembler?
  38. (I actually wanted to use Beta)
  39.